<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo5</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <!-- <div>我是文本</div>
    <script>
        $(function(){
            $("div").attr("id","666");

            var Size = $("div").attr("id");
            console.log(Size);
        });
    </script> -->
    <!-- <div type="font-size: 36px;"> 我是一个小文本</div>
    <script>
        $(function(){
            var Size = $("div").css("font-size");
            console.log(Size);
        });
    </script> -->
    <!-- <div id="test"></div>
    <div id="test2"></div>
    <input type="text" value="">
    <script>
        $(document).ready(function(){
            $("#test").html('<h1>设置html</h1>');
            $("#test2").text('<h1>设置text</h1>');
            $("input").val("设置内容");
        });
    </script> -->
    <!-- <div id="test"><span>你好</span></div>
    <input type="text" value="hello">
    <script>
        $(document).ready(function(){
            var html = $("#test").html();
            console.log("html的内容为" + html);

            var text = $("#test").text();
            console.log("文本内容为" + text);

            var inputVal = $("input").val();
            console.log(inputVal);
        });
    </script> -->
</body>
</html>